package simulador;
import java.util.Comparator;

public class Ordenador implements Comparator<Event>{

	public int compare(Event e1, Event e2) {
		
        if(e1.getHorario() > e2.getHorario()) 
            return 1;

        else if(e1.getHorario() < e2.getHorario())
            return -1;

        else
            return 0;   
	}
}

